﻿//双击事件
function CustomDbClick() {
    //parent.closeWin(); //去掉双击功能
    fnViewItem();
}

//查看具体项目得分
var fnViewItem = function () {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    var employeeID = record._oData["EmployeeID"];
    var solutionID = record._oData["SolutionID"];
    var planID = record._oData["PlanID"];
    var empName = record._oData["EmpName"];
    var planName = record._oData["PlanName"];

    var url = "../EHR/hrExamineEmpSorce.aspx?solutionID=" + solutionID + "&employeeID=" + employeeID + "&planID=" + planID;
    var pagetitle = empName + "的" + planName + "考核得分明细";
    parent._employeeTitle = pagetitle;
    parent.addTabs(pagetitle, encodeURI(url));
    parent.NeedRefreshPage = this;
}

